//
//  ZHProductScreeningChild.m
//  sc-cyan-ios
//
//  Created by lj on 2017/12/29.
//  Copyright © 2017年 greenbuilding. All rights reserved.
//

#import "ZHProductScreeningChild.h"

@implementation ZHProductScreeningChild

- (CGFloat)itemW{
    if (_itemW) {
        return _itemW;
    }
    CGFloat w = [self.name sizeWithFont:SYSTEMFONT(12) andMaxSize:CGSizeMake(MAXFLOAT, 30)].width + 25;
    
    if (w > self.supW) {
        w = self.supW;
    }
    return w;
}

@end
